![]() |
CUSTOM Windows API .NET 1.08
|
Public Types | |
| enum | CutType : byte |
| Paper cut type. More... | |
| enum | EjectType : byte |
| Eject paper type. More... | |
| enum | PaperAlignType : byte |
| Paper alignment type. More... | |
| enum | CashDrawerType : byte |
| Cash Drawer connector pin. More... | |
| enum | CommunicationPortType : byte |
| Communication port. More... | |
| enum | TrPrintMode : byte |
| Transaction Print. More... | |
| enum | DevCounterType : byte |
| Counter types supported by the devices. More... | |
Public Member Functions | |
| void | Terminate () |
| Close the communication with the device. | |
| short | GetInfoPrinterId () |
| Get the Printer ID. | |
| String | GetInfoFirmwareVersion () |
| Get the Firmware Version. | |
| String | GetInfoDeviceModel () |
| Get the Device Model. | |
| CommunicationPortType | GetCapCommPortType () |
| Get the type of communication port used by the device. | |
| Boolean | GetCapPrintAvailable () |
| Get if this device supports print functions. | |
| UInt32 | GetCapPrinterResolution () |
| Get the print resolution of this device. | |
| UInt32 | GetCapPrintWidth () |
| Get the print width of this device. | |
| void | SetCapPrintWidth (UInt32 uiNewPrintWidth) |
| Set the print width of this device. | |
| String[] | GetCapCodepagesList () |
| Get the list of all the codepages supported by the library / device. | |
| void | SetVirtualPaperEndLimit (UInt32 uiVirtualPaperEndLimitCm) |
| Set the Virtual Paper End limit of this device. | |
| bool | PrinterIsReady () |
| Check if the device is ready. | |
| PrinterStatus | GetPrinterFullStatus () |
| Get the status of this device. | |
| void | PrintText (String strText, bool bAddLF=false) |
| Print text on a printer. | |
| void | PrintText (String strText, PrintFontSettings printFont, bool bAddLF=false) |
| Print text on a printer. | |
| void | PrintImageFromPath (String strImageFilePath, PrintImageSettings printImage) |
| Print image file from path. | |
| void | PrintRawImage (PrintImageSettings.RAWBitDepth bits, byte[] pRawBuffer, int dwWidth, int dwHeight, PrintImageSettings printImage) |
| Print RAW image buffer. | |
| void | PrintBitmapImage (Bitmap bmpImage, PrintImageSettings printImage) |
| Print Bitmap image. | |
| void | PrintBarcode (String strBrcText, PrintBarcodeSettings printBarcode) |
| Print barcode file from String. | |
| void | PrintBarcode (byte[] bBrcBuffer, PrintBarcodeSettings printBarcode) |
| Print barcode file from buffer. | |
| void | SetIgnoreWhiteImages (bool bIgnore) |
| Set if ignore, or not, the white Images. | |
| void | SetGrModeToBlackWhite (PrintImageSettings.ImageGRMode imgGrModeType, byte bThreshold) |
| Set the graphic conversion mode to Black/White and, if necessary, the threshold. | |
| void | SetPageModeToRoll (bool bRollMode) |
| Set the page mode print to Roll mode. | |
| void | SetGraphicsTopMargin (UInt32 uiTopMargin) |
| Set the top margin added to the graphics print. | |
| UInt32 | GetGraphicsTopMargin () |
| Get the top margin added to the graphics print. | |
| UInt32 | CommGetReadTimeout () |
| Get the read timeout of the communication port of this device. | |
| void | CommSetReadTimeout (UInt32 uiRTimeout) |
| Set the read timeout of the communication port of this device. | |
| UInt32 | CommGetWriteTimeout () |
| Get the write timeout of the communication port of this device. | |
| void | CommSetWriteTimeout (UInt32 uiWTimeout) |
| Set the write timeout of the communication port of this device. | |
| void | CommClearReadBuffer () |
| Clean the read buffer of the communication port of this device. | |
| void | CommClearWriteBuffer () |
| Clean the write buffer of the communication port of this device. | |
| byte[] | CommRead () |
| Direct read from communication port of this device. | |
| int | CommWrite (byte[] bDataToWrite) |
| Direct write to communication port of this device. | |
| void | TransactionPrint (TrPrintMode tpMode) |
| Manage the Transaction Print of the device. | |
| void | Feed (UInt32 nFeeds) |
| Send line feed commands to the device. | |
| void | Cut (CuCustomWndDevice.CutType cuttype) |
| Send cut command to the device. | |
| void | Eject (CuCustomWndDevice.EjectType ejtype) |
| Send eject command to the device. | |
| void | EjectWithTimeout (CuCustomWndDevice.EjectType ejtype, UInt32 timeOutms) |
| Send eject with a timeout command to the device. | |
| void | Present (UInt32 presentMM) |
| Send presentation command to the device. | |
| void | Align (CuCustomWndDevice.PaperAlignType aligntype) |
| Send align command to the device. | |
| void | OpenCashDrawer (CuCustomWndDevice.CashDrawerType cashDrawertype, UInt32 timeOn, UInt32 timeOff) |
| Send open cash drawer command to the device. | |
| void | ResetDevice (bool bWaitReset) |
| Reset the device. | |
| void | DeletePrinterInternalQueue () |
| Clear / Delete the internal queue of the device. | |
| int | GetCounter (DevCounterType devCounter) |
| Get a device counter. | |
| override string | ToString () |
Class to use to communciate with the device
| enum Custom.CuCustomWndAPI.CuCustomWndDevice.CutType : byte |
Counter types supported by the devices.
Transaction Print.
|
inline |
Send align command to the device.
| aligntype | the CuCustomWndDevice.PaperAlignType type to send to the device. |
| CuCustomWndAPIWrapException |
|
inline |
Clean the read buffer of the communication port of this device.
| CuCustomWndAPIWrapException |
|
inline |
Clean the write buffer of the communication port of this device.
| CuCustomWndAPIWrapException |
|
inline |
Get the read timeout of the communication port of this device.
| CuCustomWndAPIWrapException |
|
inline |
Get the write timeout of the communication port of this device.
| CuCustomWndAPIWrapException |
|
inline |
Direct read from communication port of this device.
| CuCustomWndAPIWrapException |
|
inline |
Set the read timeout of the communication port of this device.
| uiRTimeout | the number that is the new read timeout (msec), for the communication port, of this device. |
| CuCustomWndAPIWrapException |
|
inline |
Set the write timeout of the communication port of this device.
| uiWTimeout | the number that is the new write timeout (msec), for the communication port, of this device. |
| CuCustomWndAPIWrapException |
|
inline |
Direct write to communication port of this device.
| bDataToWrite | buffer to send. |
| CuCustomWndAPIWrapException |
|
inline |
Send cut command to the device.
| cuttype | the CuCustomWndDevice.CutType type to send to the device. |
| CuCustomWndAPIWrapException |
|
inline |
Clear / Delete the internal queue of the device.
| CuCustomWndAPIWrapException |
|
inline |
Send eject command to the device.
| ejtype | the CuCustomWndDevice.EjectType type to send to the device. |
| CuCustomWndAPIWrapException |
|
inline |
Send eject with a timeout command to the device.
| ejtype | the CuCustomWndDevice.EjectType type to send to the device. |
| timeOutms | the time in milliseconds after which the movement is performed. |
|
inline |
Send line feed commands to the device.
| nFeeds | The number of line feed to send to the device. |
| CuCustomWndAPIWrapException |
|
inline |
Get the list of all the codepages supported by the library / device.
| CuCustomWndAPIWrapException |
|
inline |
Get the type of communication port used by the device.
| CuCustomWndAPIWrapException |
|
inline |
Get if this device supports print functions.
| CuCustomWndAPIWrapException |
|
inline |
Get the print resolution of this device.
| CuCustomWndAPIWrapException |
|
inline |
Get the print width of this device.
| CuCustomWndAPIWrapException |
|
inline |
Get a device counter.
| devCounter | The DevCounter that identify the counter to get from the device. |
| CuCustomWndAPIWrapException |
|
inline |
Get the top margin added to the graphics print.
| CuCustomWndAPIWrapException |
|
inline |
Get the Device Model.
| CuCustomWndAPIWrapException |
|
inline |
Get the Firmware Version.
| CuCustomWndAPIWrapException |
|
inline |
Get the Printer ID.
| CuCustomWndAPIWrapException |
|
inline |
Get the status of this device.
| CuCustomWndAPIWrapException |
|
inline |
Send open cash drawer command to the device.
| cashDrawertype | the CuCustomWndDevice.CashDrawerType type to send to the device. |
| timeOn | the pulse ON time in milliseconds |
| timeOff | the pulse OFF time in milliseconds |
|
inline |
Send presentation command to the device.
| presentMM | the value (mm) of the presentation to send to the device. |
| CuCustomWndAPIWrapException |
|
inline |
Print barcode file from buffer.
| bBrcBuffer | The buffer to print into barcode. |
| printBarcode | the PrintBarcodeSettings with all the parameters / Attributes to use to print the barcode. |
| CuCustomWndAPIWrapException |
|
inline |
Print barcode file from String.
| strBrcText | The text string to print into barcode. |
| printBarcode | the PrintBarcodeSettings with all the parameters / Attributes to use to print the barcode. |
| CuCustomWndAPIWrapException |
|
inline |
Print Bitmap image.
| bmpImage | the bitmap to print. |
| printImage | The PrintImageSettings with all the parameters / Attributes to use to print the image. |
| CuCustomWndAPIWrapException |
|
inline |
Check if the device is ready.
| CuCustomWndAPIWrapException |
|
inline |
Print image file from path.
| strImageFilePath | string with the image file path. |
| printImage | The PrintImageSettings with all the parameters / Attributes to use to print the image. |
| CuCustomWndAPIWrapException |
|
inline |
Print RAW image buffer.
| bits | the bit deph of the RAW data. |
| pRawBuffer | RAW buffer to print. |
| dwWidth | width (pixels/dots) of the of RAW image. |
| dwHeight | height (pixels/dots) of the of RAW image. |
| printImage | The PrintImageSettings with all the parameters / Attributes to use to print the image. |
| CuCustomWndAPIWrapException |
|
inline |
Print text on a printer.
| strText | The text string to print. |
| bAddLF | The boolean that is TRUE if must be send a line feed command after the text. |
| CuCustomWndAPIWrapException |
|
inline |
Print text on a printer.
| strText | The text string to print. |
| printFont | The PrintFontSettings with all the parameters / Attributes to use to print the text. |
| bAddLF | The boolean that is TRUE if must be send a line feed command after the text. |
| CuCustomWndAPIWrapException |
|
inline |
Reset the device.
| bWaitReset | The boolean that is TRUE if must be wait the reset and the re-open before exit. If bWaitReset is FALSE, must be close and re-open the device communcation before continue. |
| CuCustomWndAPIWrapException |
|
inline |
Set the print width of this device.
| uiNewPrintWidth | A number that is the new print width (dots) of this device. |
| CuCustomWndAPIWrapException |
|
inline |
Set the top margin added to the graphics print.
| uiTopMargin | The fixed top margin (dots) added to every print in graphics mode (default is 16). |
| CuCustomWndAPIWrapException |
|
inline |
Set the graphic conversion mode to Black/White and, if necessary, the threshold.
| imgGrModeType | the PrintImageSettings.ImageGRMode conversion to black / white mode. |
| bThreshold | the threshold value to use (only for PrintImageSettings.ImageGRMode.IMAGE_GRMODE_THRESHOLD mode). |
| CuCustomWndAPIWrapException |
|
inline |
Set if ignore, or not, the white Images.
| bIgnore | The boolean that is TRUE when a totally white Image must be ignored and not print (default is FALSE). |
| CuCustomWndAPIWrapException |
|
inline |
Set the page mode print to Roll mode.
| bRollMode | The boolean that is TRUE when the printer prints until the last not white line (default is FALSE). |
| CuCustomWndAPIWrapException |
|
inline |
Set the Virtual Paper End limit of this device.
| uiVirtualPaperEndLimitCm | A number that will be the virtual paper end limit, expressed in cm, of this device (for e.g. "1500" is to set 15m). |
| CuCustomWndAPIWrapException |
|
inline |
Close the communication with the device.
| CuCustomWndAPIWrapException |
|
inline |
Convert the deviceID to a String
|
inline |
Manage the Transaction Print of the device.
| tpMode | Transaction control. |
| CuCustomWndAPIWrapException |